package com.swz.dcrm.model;

import com.google.gson.annotations.SerializedName;

/**
 * @author xh
 */
public class BaseResponse<T> {


    /**
     * code : 0
     * msg : null
     * data : APP_CUSTOMER_TOKEN_null_NAME__4_6_7_7_4_a_0_5_-_8_3_6_c_-_4_5_3_d_-_8_3_d_9_-_b_4_f_3_e_e_6_7_3_5_0_4_
     */

    @SerializedName("code")
    private int code;
    @SerializedName("message")
    private String msg;
    @SerializedName("data")
    private T data;



    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public boolean isSuccess(){
        if(code==10000){
            return true;
        }
        return false;
    }
}
